CREATE TABLE [dbo].[App_categ_entidad]
(
[id_categ_entidad] [dbo].[_codigo] NOT NULL,
[id_perfil] [dbo].[_codigo] NOT NULL,
[descripcion] [dbo].[_nombre] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[App_categ_entidad] ADD CONSTRAINT [PK_categ_entidad] PRIMARY KEY CLUSTERED  ([id_categ_entidad]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[App_categ_entidad] ADD CONSTRAINT [FK_categ_entidad_perfil] FOREIGN KEY ([id_perfil]) REFERENCES [dbo].[App_perfil] ([id_perfil])
GO
